package com.tutu.commons.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @Program: b2c-cloud-store
 * @Description: 产品实体类
 * @Author: JK.TuTu
 * @Version: 1.0
 * @Create: 2022-12-15 10:33
 **/
@Data
@TableName("product")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_id", type = IdType.AUTO)
    private Integer productId;  //商品主键id

    @TableField("product_name")
    private String productName; //商品名称

    @TableField("category_id")
    private String categoryId;  //商品类别id

    @TableField("product_title")
    private String productTitle;  //商品标题

    @TableField("product_intro")
    private String productIntro;  //商品介绍

    @TableField("product_price")
    private Double productPrice;  //商品价格

    @TableField("product_selling_price")
    private Double productSellingPrice;  //商品现在售价

    @TableField("product_num")
    private Integer productNum;   //商品数量

    @TableField("product_sales")
    private Integer productSales;  //商品已卖数量

    @TableField("product_picture")  //商品图片路径
    private String productPicture;

}
